const express=require('express')
//引入路由文件
const moviesRouter=require('./routes/moviesRouter')
const app=express()
app.use(express.static('public'))
//注册路由
app.use('/movies',moviesRouter)

app.listen(3000,()=>{console.log('express服务器的端口是3000')})